﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZhiJiao.Models.Entities.Enums;
using ZhiJiao.Service.Dto;

namespace ZhiJiao.Service.Abstracts
{
    public interface IRuleService
    {
        // 获取规则列表
        Task<BackJson> GetRuleList(long insId, string? name, RuleType? type);

        // 保存参与规则
        Task<BackJson> Save(RuleDto dto);

        // 删除参与规则
        Task<BackJson> DeleteRule(long id);

        // 获取单个参与规则
        Task<BackJson> GetSingleRule(long id);

        // isActive 切换
        Task<BackJson> IsActiveSwitch(long id, string value);

        // 获取测评参与规则
        Task<BackJson> GetEvaluationRules(long id);
    }
}
